#ifndef __VIEW__
#define __VIEW__

#include "Header.h"
#include "utilities.h"

#if CURRENT_PLATFORM == PLATFORM_WINDOWS
class View
{
public:
	View(bool fullscreen, __UINT32 width, __UINT32 height, const char* title);
	virtual ~View();
	virtual void update();
	__UINT32 getWidth() { return m_iWidth; }
	__UINT32 getHeight() { return m_iHeight; }
protected:
	__UINT32 m_iWidth;
	__UINT32 m_iHeight;
	bool m_isFullScreen;
	char *m_sTitle;
	void initWindow();
	void initGL();
	void refreshGL();
	void destroy();
public:
	HGLRC m_hGLRC;
	HWND m_hwndWindow;
	HDC m_hGameWndDC;
	static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
};
#endif // WIN32
#endif